//
//  QNJsbridge+Data.m
//  JSAPIModule
//
//  Created by sumeng on 2018/3/6.
//
#define QN_callUserList @"callUserList"
#define QN_callLoginUser @"callLoginUser"
#define QN_saveUserInfo @"saveUserInfo"
#import "QNJsbridge+Data.h"

@implementation QNJsbridge (Data)

#pragma mark - user
#pragma mark 发送用户列表
- (void)callUserList:(NSMutableArray *)userList responseBlock:(QN_responseBlock)responseBlock {
    [self callHandler:QN_callUserList data:userList responseBlock:^(id data) {
        responseBlock(data);
    }];
}

#pragma mark 发送登录用户信息
- (void)callLoginUser:(NSDictionary *)loginUser responseBlock:(QN_responseBlock)responseBlock {
    [self callHandler:QN_callLoginUser data:loginUser responseBlock:^(id data) {
        responseBlock(data);
    }];
}

#pragma mark 保存用户信息
- (void)registerSaveUserInfoResponseBlock:(QN_responseBlock)responseBlock {
    [self registerHandler:QN_saveUserInfo responseBlock:^(id data) {
        responseBlock(data);
    }];
}
@end
